package com.kaibes.platform.article.db.service;

import org.springframework.stereotype.Service;

import com.kaibes.core.base.option.NullOptions;
import com.kaibes.platform.article.db.entity.ArticleCategory;
import com.kaibes.web.api.ResponseServiceImpl;

@Service
public class ArticleCategoryService extends ResponseServiceImpl<ArticleCategory> {
    
    public String getNameById(Integer id) {
        return NullOptions.returnString(id, idt->getById(idt, "name").getName());
    }
}
